<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户列表</title>
    <script>
        function del(id) {
            if (confirm("您确认删除吗？")) {
                location.href = "/user/del/" + id;
            }
        }
    </script>
</head>
<body>
<table>
    <tr>
        <th><input type="checkbox"> 全选</th>
        <th>账号</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${users}" var="user">
        <tr>
            <td><input type="checkbox"></td>
            <td>${user.account}</td>
            <td>${user.status}</td>
            <td><a href="">修改</a><a href="javascript:void(0)" onclick="del(${user.id})">删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
